package com.zl.common;

public class Page {
	private int page;
	private int rows;
	
	public Page(int page, int rows) {
		super();
		this.page = page;
		this.rows = rows;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	
	public int getStartOfPage(){
		return (getPage() - 1) * rows + 1;
	}
}
